package com.maomao.maomaochong2;

/**
 * Created by maomao on 2017/4/28.
 */

public class AllItem {
    private int id;
    private String name;
    private String price;

    public AllItem() {
    }

    //用于 ListView中
    public AllItem(String name) {
        this.name = name;
    }

    public AllItem(int id, String name, String price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    //用于 GridView中

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
